import { AddFormatFunc, doWhilelRuleType } from "../types";

AddFormatFunc<doWhilelRuleType>({

	type: "DO_WHILE",

	handle: (rule, FMC) => {
		return `do{\n${rule[1].map(item => FMC(item)).join("\n")}\n}while(${FMC(rule[2])})`;
	},

})
